package com.kjlink.internal.workreport.other.service;

import com.kjlink.internal.workreport.other.mapper.OtherMapper;
import com.kjlink.internal.workreport.other.model.DayReportSummaryInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDate;

/**
 * 描述:
 * 一些其他的操作
 *
 * @author Vic.xu
 * @since 2024-05-21 9:50
 */
@Service
public class OtherService {


    @Resource
    private OtherMapper otherMapper;

    /**
     * 某日 填报日报汇总统计： 未填报的优先展示
     *
     * @param localDate 日期
     * @return 填报情况
     */
    public DayReportSummaryInfo dayReportSummaryInfo(LocalDate localDate) {
        return new DayReportSummaryInfo(otherMapper.dayReportSummary(localDate));
    }
}
